package org.ssh.pojo;

import javax.persistence.*;
import java.sql.Time;

/**
 * @author ZH
 * @date 2022年01月18日 11:53:00
 * @version: 1.0.0
 */
@Entity
@Table(name = "BACKLOG", schema = "QUALITY", catalog = "")
public class BacklogEntity {
    private long id;
    private String sponsor;
    private String sponsorNo;
    private Time riseTime;
    private String recipient;
    private String recipientNo;
    private String systemNo;
    private String content;

    @Id
    @Column(name = "ID")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "SPONSOR")
    public String getSponsor() {
        return sponsor;
    }

    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    @Basic
    @Column(name = "SPONSOR_NO")
    public String getSponsorNo() {
        return sponsorNo;
    }

    public void setSponsorNo(String sponsorNo) {
        this.sponsorNo = sponsorNo;
    }

    @Basic
    @Column(name = "RISE_TIME")
    public Time getRiseTime() {
        return riseTime;
    }

    public void setRiseTime(Time riseTime) {
        this.riseTime = riseTime;
    }

    @Basic
    @Column(name = "RECIPIENT")
    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    @Basic
    @Column(name = "RECIPIENT_NO")
    public String getRecipientNo() {
        return recipientNo;
    }

    public void setRecipientNo(String recipientNo) {
        this.recipientNo = recipientNo;
    }

    @Basic
    @Column(name = "SYSTEM_NO")
    public String getSystemNo() {
        return systemNo;
    }

    public void setSystemNo(String systemNo) {
        this.systemNo = systemNo;
    }

    @Basic
    @Column(name = "CONTENT")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BacklogEntity that = (BacklogEntity) o;

        if (id != that.id) return false;
        if (sponsor != null ? !sponsor.equals(that.sponsor) : that.sponsor != null) return false;
        if (sponsorNo != null ? !sponsorNo.equals(that.sponsorNo) : that.sponsorNo != null) return false;
        if (riseTime != null ? !riseTime.equals(that.riseTime) : that.riseTime != null) return false;
        if (recipient != null ? !recipient.equals(that.recipient) : that.recipient != null) return false;
        if (recipientNo != null ? !recipientNo.equals(that.recipientNo) : that.recipientNo != null) return false;
        if (systemNo != null ? !systemNo.equals(that.systemNo) : that.systemNo != null) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (sponsor != null ? sponsor.hashCode() : 0);
        result = 31 * result + (sponsorNo != null ? sponsorNo.hashCode() : 0);
        result = 31 * result + (riseTime != null ? riseTime.hashCode() : 0);
        result = 31 * result + (recipient != null ? recipient.hashCode() : 0);
        result = 31 * result + (recipientNo != null ? recipientNo.hashCode() : 0);
        result = 31 * result + (systemNo != null ? systemNo.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        return result;
    }
}
